home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 19 / Mac Magazin and MacEasy Magazine CD - Issue 19.iso / Grafik & Text & Film / Quark XTensions / Freeware Xtensions / Quark AppleScript Scripts / AppleScript Scripts / AppleScript Scripts.rsrc / TEXT_132.txt < prev    next >
Text File  |  1994-06-29  |  8KB  |  161 lines

  1. Using AppleScript Scripts
  2.  
  3. Auxiliary Dictionary Manager
  4.  
  5. This Droplet automatically closes, opens, or switches the Auxiliary Dictionary specified for a collection of documents. 
  6.  
  7. 1.     Select several QuarkXPress documents at the Finder.
  8.  
  9. 2.     Drop the selected documents on the Auxiliary Dictionary Manager script.
  10.  
  11. 3.     The Auxiliary Dictionary Manager dialog box is displayed:
  12.  
  13. ‚Ä¢  Click Close to automatically open each document, close the Auxiliary Dictionary, save the change, and close the document.
  14.  
  15. ‚Ä¢  Click Open/Switch to automatically open each document, close the specified Auxiliary Dictionary if there is one, open a specified Auxiliary Dictionary, save the change, and close the document. 
  16.  
  17. 4.     If you click Open/Switch, an Open dialog box asks you to ‚ÄúSelect a QuarkXPress‚Ñ¢ Auxiliary Dictionary.‚Äù Select a dictionary file and click Open. That dictionary will be opened for each document dropped on the script.
  18.  
  19.  
  20.  
  21. Drop the ‚ÄúDemo Document‚Äù on the script and experiment with Close and Open/Switch using the Zoom Dictionary and the Zoom2 Dictionary in the Documentation and Demos folder.
  22.  
  23.  
  24. Find/Change Style Sheet
  25.  
  26. This Applet globally searches for one style sheet and replaces it with another. When style sheets are replaced, local formatting in the affected text is retained. 
  27.  
  28. 1.     Open a QuarkXPress document containing style sheets. 
  29.  
  30. 2.     Look at the names of the style sheets specified for the document (in the Style Sheets palette or the Style Sheets submenu of the Style menu).
  31.  
  32. 3.     Double-click on the Find/Change Style Sheet script.
  33.  
  34. 4.     Enter the exact name of the style sheet you want to find in the Find what field and click Find. The default Find what style sheet is Normal.
  35.  
  36. 5.     Enter the exact name of a replacement style sheet in the Change to field and click Change.
  37.  
  38. 6.     The script reports how many instances of the style sheet were found and changed. Click OK to close this dialog box.
  39.  
  40.  
  41.  
  42. Open the ‚ÄúDemo Document‚Äù and use the script to search the text on page 2 for one style sheet and replace it with any other style sheet. For example, change all instances of ‚Äú1-Head‚Äù to ‚Äú2-Subhead‚Äù or change all instances of ‚ÄúNormal‚Äù to ‚Äú3-Body.‚Äù
  43.  
  44.  
  45. Fit Box to Picture
  46.  
  47. This Applet automatically resizes a picture box to the boundaries of the picture.
  48.  
  49. 1.     Click on a picture box with the Content tool or the Item tool selected.
  50.  
  51. 2.     Double-click on the Fit Box to Picture script.
  52.  
  53.  
  54.  
  55. Select a picture box in the ‚ÄúDemo Document‚Äù and run the script. Several of the boxes crop pictures and can be resized to display the entire picture. Other boxes are much larger than the pictures can be resized to better fit the pictures.
  56.  
  57.  
  58. Open to Page
  59.  
  60. This Applet allows you to open a document to a specific page.
  61.  
  62. 1.     Double-click on the Open to Page script; an Open dialog box is displayed.
  63.  
  64. 2.     Select a document and click Open.
  65.  
  66. 3.     The Open to Page dialog box is displayed. Enter the absolute page number of the page you want to open the document to.
  67.  
  68. 4.     Click OK.
  69.  
  70.  
  71.  
  72. Use the Open to Page script to open the ‚ÄúDemo Document‚Äù to page 2. You won‚Äôt have to wait for the graphics on page 1 to redraw.
  73.  
  74.  
  75. Preference Checker
  76.  
  77. This Applet creates a report of all current Application, General, and Typographic Preferences settings, and all document default settings.
  78.  
  79. 1.     To check the preferences for a specific document, open that document. To check the QuarkXPress default preferences, make sure no documents are open.
  80.  
  81. 2.     Double-click on the Preference Checker script.
  82.  
  83. The Applet creates a two-column QuarkXPress document, then imports and formats the preferences. Some preferences are not accessible through Apple Events scripting and, therefore, are not reported. These include: Drag and Drop Text, Speed Scroll, Standard em space, Not ffi or ffl, Accents for All Caps, Superior HScale and VScale, and Trapping Preferences.
  84.  
  85.  
  86.  
  87. Close all documents and run the script to generate a report of your QuarkXPress default preferences.
  88.  
  89.  
  90. Save Pages as EPS Files
  91.  
  92. This Droplet saves each page in each selected document as a Mac Color EPS file.
  93.  
  94. 1.     Select the QuarkXPress documents to save as EPS files at the Finder. This script does not process QuarkXPress templates.
  95.  
  96. 2.     Drop the selected files on the Save Pages as EPS Files script.
  97.  
  98. 3.     Click OK in the alert dialog box that explains the actions of the script.
  99.  
  100. 4.     An Open dialog box is displayed. It asks you to ‚ÄúSelect a destination folder for EPS files.‚Äù Locate the folder you want, and click the Choose (folder name) button at the bottom of the dialog box.
  101. The script opens each document and saves each page as a Mac Color EPS in the specified folder. If the Missing/Modified Pictures alert appears while the script is running, the script allows you to update the pictures before it continues. The EPS files are named with the document name and the page number, for example, ‚ÄúDemo Document-Page1‚Äù and ‚ÄúDemo Document-Page2.‚Äù
  102.  
  103.  
  104.  
  105. Select the ‚ÄúDemo Document‚Äù and drop it on the Droplet. Remember where you save the EPS files on your hard drive so you can delete them later.
  106.  
  107.  
  108. Set Default Page View
  109.  
  110. This Applet allows you to specify the default page view for all new documents.
  111.  
  112. 1.     Double-click on the Set Default Page View script.
  113.  
  114. 2.     The Select Default Page View dialog box is displayed. Click 100%, Fit In Window, or Custom to specify the default page view.
  115.  
  116. 3.     If you click Custom, a dialog box is displayed. Enter a value between 10% and 400% and click OK.
  117.  
  118. 4.     The next document you create will open at the specified page view percentage. To change the default page view percentage, run the script again.
  119.  
  120.  
  121.  
  122. Run the script and specify a view percentage other than 100%. Create a new document and check the value in the view percent field in the lower left corner of the document window.
  123.  
  124.  
  125. Set Page Guides
  126.  
  127. This Applet allows you to create and position page guides by entering horizontal or vertical measurements.
  128.  
  129. 1.     Double-click on the Set Page Guides script.
  130.  
  131. 2.     The Set Page Guides dialog box reports how many pages are in the document. Enter the absolute page number of the page you want to create a guide on in the Apply guide to page field and click OK.
  132.  
  133. 3.     Enter a position for the guide in the Place guide at field. You can enter values in any measurement system or use the document default. Click Horizontal or Vertical to specify the type of guide you want and create it automatically.
  134.  
  135.  
  136.  
  137. Choose View ‚Äì> Show Guides to display the guides as they are created. Open the ‚ÄúDemo Document‚Äù and use the script to create a new horizontal or vertical guide.
  138.  
  139.  
  140. Update to Current Version
  141.  
  142. This Droplet updates documents to the most current version of QuarkXPress available on the local hard drive. You have the option to update current documents, or create new copies and back up the documents in the previous version.
  143.  
  144. 1.     Select the QuarkXPress documents to update at the Finder. This script does not process QuarkXPress templates.
  145.  
  146. 2.     Drop the selected files on the Update to Current Version script.
  147.  
  148. 3.     A dialog box asks whether you want to ‚ÄúUpdate existing documents to current version or retain backups and save new documents?‚Äù 
  149. ‚Ä¢  Click Update to save each document in the current version of QuarkXPress.
  150. ‚Ä¢  Click Save New to save a copy of each document, updated to the current version, in a specified folder.
  151.  
  152. 4.     If you click Save New, an Open dialog box asks you to ‚ÄúSelect a destination folder for new documents.‚Äù Locate the folder you want, and click the Choose (folder name) button at the bottom of the dialog box.
  153.  
  154. Whether you click Update or Save New, the script opens each document in the current version of QuarkXPress, makes a change to the document so the Save command is available, and saves the document. (To activate the Save command, the script creates and deletes a small text box on the first page of each document.)
  155.  
  156.  
  157.  
  158. If you have QuarkXPress documents in previous versions on your hard drive, select them and drop them on the script.
  159.  
  160.  
  161.